{{template "header"}}
<title>添加文章 - 我的 beego 博客</title>
</head>

<body>
<div class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        {{template "navbar" .}}
    </div>
</div>

<div class="container">
    <h1>添加文章</h1>
    <form method="post" action="/topic">
        <div class="form-group">
            <label>文章标题：</label>
            <input type="text" class="form-control" name="title">
        </div>

        <div class="form-group">
            <label>文章内容：</label>
            <textarea name="content" cols="30" rows="10" class="form-control"></textarea>
        </div>
        <button type="submit" class="btn btn-default">添加文章</button>
    </form>
</div>

<script type="text/javascript" src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</body>
</html>